/**
 * --------------------------------------------------------------------------
 * Hi.js (v1.0.0): Loadingbar.js
 * require jquery
 * --------------------------------------------------------------------------
 */

;(function($, window, document, undefined) {
    "use strict";

    var defaults = {
        minimum: 0.08,                              // 当前页
        easing: 'linear',                           // 一页多少数据
        count: 1,                                   // 数据总数
        positionUsing: '',                          // 自定义上一页的内容
        speed: 200,                                 // 自定义下一页的内容
        trickle: true,                              // 自定义主题
        trickleSpeed: 200,                          // 页码切换的回调
        showSpinner: true,                          // 页码切换的回调
        barSelector: '[role="bar"]',                // 页码切换的回调
        spinnerSelector: '[role="spinner"]',        // 页码切换的回调
        spinnerSelector: '[role="spinner"]',        // 页码切换的回调
        parent: 'body',                             // 页码切换的回调
        template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>',         // 模版
    };
    
	//定义Loadingbar的构造函数
    var Loadingbar = function(option) {
        this.status = null;
        this.options = $.extend({}, defaults, option);
        this.init();
    }

    Loadingbar.VERSION = '1.0.0';

    //定义Loadingbar的方法
    Loadingbar.prototype = {
        constructor: Loadingbar,
        configure: function(options) {
            var key, value;
            for (key in options) {
              value = options[key];
              if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;
            }
            return this;
        },
        init: function() {
            this.render();
            this.bind();
        },
        render: function() {
            var _this = this;
             
        },
        bind: function() {
            var _this = this;
        }
    }
    //在插件中使用Loadingbar扩展
    $.fn.extend({
        loadingbar: Loadingbar
    });
})(jQuery, window, document);